import request from '@/utils/request'
import { baseUrl } from './baseUrl'

//上传banner图片
export function UploadBanners(paramsData) {
          return request({
            url: baseUrl+ '/api/imageUpload/imageUploadBanners',
            method: 'post',
            params: paramsData
          })
        }
//删除banner图片
export function delBanners(paramsData) {
          return request({
            url: baseUrl+ '/api/imageUpload/imageDelBanners',
            method: 'post',
            params: paramsData
          })
        }
        //imgId
//查询banner图片 
export function getBanners(paramsData) {
          return request({
            url: baseUrl+ '/api/banner/getBanners',
            method: 'post',
            params: paramsData
          })
        }

//微信支付图片上传 
export function getUploadWeiXin(paramsData) {
          return request({
            url: baseUrl+ '/api/imageUpload/imageUploadWxQRImg',
            method: 'post',
            params: paramsData
          })
        }

//获取微信支付图片 
export function getWeiXin(paramsData) {
          return request({
            url: baseUrl+ '/api/wx/getQRImgs',
            method: 'post',
            params: paramsData
          })
        }
//删除微信支付图片  
export function delWeiXin(paramsData) {
          return request({
            url: baseUrl+ '/api/imageUpload/imageDelWxQRImg',
            method: 'post',
            params: paramsData
          })
        }
//微信支付选择启用图片 
export function enableWeiXin(paramsData) {
          return request({
            url: baseUrl+ '/api/wx/uploadQRImgs',
            method: 'post',
            params: paramsData
          })
        }
//查詢廣告列表
export function getADList(paramsData) {
  return request({
    url: baseUrl+ '/api/adv/getAdvs',
    method: 'post',
    params: paramsData
  })
}
//广告图片删除
export function delADList(paramsData) {
  return request({
    url: baseUrl+ '/api/imageUpload/imageDelAdvImg',
    method: 'post',
    params: paramsData
  })
}
//imgId

//广告修改 
export function modifyAD(paramsData) {
  return request({
    url: baseUrl+ '/api/adv/updateAdv',
    method: 'post',
    params: paramsData
  })
}
// imgId
// h5Url